package JavaTest.SynthesisProject.demo01;

/**
 * 房屋信息
 */
public class House {
    /**房屋id*/
    private int id;
    /**房主姓名*/
    private String name;
    /**房主手机*/
    private String phone;
    /**房屋地址*/
    private String address;
    /**月租金*/
    private int rent;
    /**是否已出租*/
    private boolean state;

    @Override
    public String toString() {
        return id +
                "\t"+ name +
                "\t"+ phone +
                "\t"+ address +
                "\t"+ rent +
                "\t"+ state ;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getRent() {
        return rent;
    }

    public void setRent(int rent) {
        this.rent = rent;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }
}
